import { createRouter, createWebHistory } from 'vue-router'
import Index from '../views/Index.vue'
import Login from '../views/Login.vue'
import Receive from '../views/Receive.vue'

const routes = [
    {
        path: '/',
        redirect: '/index'
    },
    {
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/index',
        name: 'Index',
        component: Index
    },
    {
        path: '/receive',
        name: 'Receive',
        component: Receive
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router 